package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.alibaba.fastjson.annotation.JSONField;
import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

/**
 * Created by 黄江华 on 2017/10/17
 */

public class ChangePassReq extends BaseRequest {

    private Integer userId;

    private String userName;

    @JSONField(serialize = false) //密码明文不记录到日志里
    @NotEmpty(message = "原密码不能为空")
    @Length(max = 50, message = "原密码不能超过50个字符")
    private String oldPass;

    @JSONField(serialize = false) //密码明文不记录到日志里
    @NotEmpty(message = "新密码不能为空")
    @Length(max = 50, message = "新密码不能超过50个字符")
    private String password;

    @JSONField(serialize = false) //密码明文不记录到日志里
    @NotEmpty(message = "新密码不能为空")
    @Length(max = 50, message = "新密码不能超过50个字符")
    private String password2;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOldPass() {
        return oldPass;
    }

    public void setOldPass(String oldPass) {
        this.oldPass = oldPass;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }
}
